<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">

    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
    <title></title>
    <link href="/static/mobile/css/mui.min.css" rel="stylesheet"/>
    <link rel="stylesheet" type="text/css" href="/static/mobile/css/basic.css"/>
    <link rel="stylesheet" type="text/css" href="/static/mobile/css/rigist.css"/>
	<link rel="stylesheet" href="/static/plugins/layui/css/layui.css">
    <script type="text/javascript" src="/static/mobile/js/jquery.js">

    	
    </script>
    
    <script type="text/javascript" charset="utf-8">
      	
    </script>

	<style>
		.f9{
			position: relative;
		}
		/*.slmn{*/
			/*position: absolute;*/
			/*z-index: 99;*/
		/*}*/
		.f1{
			/*overflow: hidden;*/
		}
		.btn_ss{
			display: inline-block;
			text-align: center;
			position: absolute;
			right: 0px;
			bottom: 15px;
			height: 45px;
			line-height: 45px;
			border-top-right-radius: 25px;
			border-bottom-right-radius: 25px;
			width: 90px;
			background: #ccc;
			color: #4e4e4e;
			border-color: #ccc;
		}

		body{
			width: 100%;
			background:linear-gradient(to bottom,#fe6b58,#ff4f2c);
		}
		.f1 input::-webkit-input-placeholder{
			color: #eee;
		}
		.f1 input{
			background: none;
			color: #fff;
			border-color: #eee !important;
		}
		.sub button{
			width: 100%;
			height: 45px;
			border-radius: 25px;
			background: #eee;
			color: #fe6b58;
			font-size: 16px;
			font-weight: bold;
		}
		.zz{
			margin-top: 60px;
		}
		.p2 {
			float: none !important;
			text-align: center;
			color: #fff !important;
			height: 21px;
			line-height: 21px;
		}
		.p2 a{
			color: #fff !important;
			font-size: 16px;
		}
		.pipi{
			margin-top: 20px;
		}
		.pipi p{
			text-align: center;
			color: #fff;
			font-size: 18px;
			font-weight: bold;
		}

	</style>
</head>
<body>
	<div class="section9">
		<div class="layui-form">
		<div class="container-1">
			<div class="kong"></div>
			<div class="lolo">
				<img src="/static/user/images/login.png" alt="" />
			</div>
			<div class="pipi">
				<p class="p">
					欢迎注册东山会员系统
				</p>
			</div>
			<div class="fom">
				<form action="" method="post">
					<div class="f1">
						<input type="text" name="email" id="email" value="" placeholder="请输入手机号"/>
						<img src="/static/user/images/mm1.png"/>
					</div>
			<!--		<div class="f1">
						<input type="text" name="code" id="code" value="" placeholder="请输入验证码"/>
						<img src="/static/user/images/mm3.png"/>
						<span  class="btn_ss">获取验证码</span>
					</div>-->

					<div class="f1">
						<input type="text" name="username" id="username" value="" placeholder="请输入会员姓名"/>
						<img src="/static/user/images/gg3.png"/>
					</div>
					<div class="f1">
						<input type="password" name="password" id="password" value="" placeholder="请输入密码"/>
						<img src="/static/user/images/mm3.png"/>
					</div>
					<div class="f1">
						<input type="password" name="password2" id="password2" value="" placeholder="请确认密码"/>
						<img src="/static/user/images/mm3.png"/>
					</div>
					<div class="f1">
						<input type="text" name="up_userid" id="up_userid" value="{$mobile}" placeholder="请输入推荐人账号"/>
						<img src="/static/user/images/gg1.png"/>
					</div>
					<div class="f1">
						<input type="text" name="fathername" id="fathername" value="" placeholder="请输入安置人账号"/>
						<img src="/static/user/images/gg1.png"/>
					</div>
					<div class="f1">
						<input type="text" name="center_id" id="center_id" value="" placeholder="请输入服务中心账号"/>
						<img src="/static/user/images/gg1.png"/>
					</div>

					<div class="f1 f9 mui-clearfix">
						<select name="treeplace" class="">
							<option value="0" style="display: none !important;">安置区域</option>
							<option value="1" >A区</option>
							<option value="2" >B区</option>
						</select>
						<img src="/static/user/images/gg2.png"/>
					</div>
					<div class="f1 f9 mui-clearfix">
						<!--<span class="slmn">报单级别</span>-->
						<select name="level" class="">
							<option value="0" style="display: none !important;">报单级别</option>
							{volist name="levels" id="value"}
							<option value="{$value.level_id}" >{$value.level_name}</option>
							{/volist}
						</select>
						<img src="/static/user/images/gg2.png"/>
					</div>
					<div class="sub">
						<button type="button" class="layui-btn" lay-filter="sub" lay-submit>立即注册</button>
					</div>
					
				</form>
				
			</div>
			<div class="zz mui-clearfix">
				<div class="container-1 mui-clearfix">
					<!--<p class="p1">忘记密码？</p>-->
					<!--<p class="p2">注册账号</p>-->
				</div>
				
			</div>
		</div>
		</div>
	</div>
</body>
<script src="/static/mobile/js/mui.min.js"></script>
<script src="/static/plugins/layui/layui.js"></script>
<script>
    layui.use(['form', 'layer'], function () {
        var form = layui.form,$ = layui.jquery;
        // 登录提交监听
        form.on('submit(sub)', function (data) {
            var loading = layer.load(1, {shade: [0.1, '#fff']});
            $.post("{:url('regist')}",data.field,function(res){
                layer.close(loading);
                if(res.code > 0){
                    layer.msg(res.msg,{time:1000,icon:1},function(){
                        location.href = "{:url('index/index')}";
                    });
                }else{
                    layer.msg(res.msg,{time:1000,icon:2});
                    $('.captcha img').attr('src','{:url("verify")}?id='+Math.random());
                }
            });
        })
    })
</script>
    
<script>


	mui.init({
		swipeBack:true //启用右滑关闭功能
	});
</script>
<!--<script>-->
	<!--$(function () {-->
		<!--$(".btn_ss").click(function () {-->
			<!--setTimeout(function () {-->
				<!--var data = 60;-->
				<!--data &#45;&#45;;-->
                <!--if()-->
            <!--},1000)-->
        <!--})-->
    <!--})-->
<!--</script>-->
<script>

    $(".btn_ss").click(function () {
        var countdown=60;
        var tel=$('#email').val();
       var dd =  setInterval(function () {
			if (countdown <= 0){
                $(".btn_ss").text("重新发送");
                clearInterval(dd);
                return;
			}
            countdown--;
            $(".btn_ss").text(countdown+"s");
        },1000);
        $.ajax({
            url:'code',
            type:'POST',
            data:{tel:tel},
            success: function(data){
                if(data==1){

                }else{

                }
            }
        })
    })
</script>



</html>